package World;

import java.awt.Component;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JPanel;

public class PrincipalPanel extends JPanel{

    private JButton chooseWorld;
    private JButton continueGame;
    private JButton login;
    private JButton options;
    private JButton createPhase;

    public PrincipalPanel() {
        initComponents();
    }

    private void initComponents() {
        this.setSize(400, 300);
        this.setVisible(true);

        this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
        this.setFocusable(true);

        chooseWorld = new JButton("Seleccionar Mundo");
        chooseWorld.setAlignmentX(Component.CENTER_ALIGNMENT);
        this.add(chooseWorld);

        continueGame = new JButton("Continuar Partida");
        continueGame.setAlignmentX(Component.CENTER_ALIGNMENT);
        this.add(continueGame);
        
        login = new JButton("Login");
        login.setAlignmentX(Component.CENTER_ALIGNMENT);
        this.add(login);
        
        createPhase = new JButton("Crear fase");
        createPhase.setAlignmentX(Component.CENTER_ALIGNMENT);
        this.add(createPhase);

        options = new JButton("Opciones");
        options.setAlignmentX(Component.CENTER_ALIGNMENT);
        this.add(options);
    }
    
    public JButton getChooseWorldButton() {
        return chooseWorld;
    }
    
    public JButton getContinueGameButton(){
        return continueGame;
    }
    
    public JButton getLogInButton(){
        return login;
    }

    public JButton getCreatePhase() {
        return createPhase;
    }
}
